package com.tsintergy.tmosguide.datamng.web.base.controller;

import com.tsieframework.core.base.web.BaseResp;
import com.tsintergy.tmosguide.datamng.feignapi.SpringCloudProviderApi;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cloud")
@Api(value = "SpringCloud服务消费者测试", tags = "[datamng][cloudConsumer]")
public class SpringCloudConsumerInvokerController {

    @Autowired
    SpringCloudProviderApi springCloudProviderApi;

    @RequestMapping(value = "/invokeSayHello", method = RequestMethod.GET)
    BaseResp<String> invokeSayHello() {
        return springCloudProviderApi.sayHello();
    }

}
